#include<iostream>
#include<map>
using namespace std;
int main()
{
	int n;
	cin >> n;
	map<int, int>mp;
	for (int i = 0; i < n; i++) {
		int x;
		cin >> x;
		mp[x]++;
	}
	for (auto it : mp) {
		cout << "mp-->" << it.first << " " << it.second << endl;
	}
	return 0;
}